package com.sj.parksdk.net.result.databean;

import com.sj.parksdk.net.base.Page_Data;

import java.math.BigDecimal;

public class Data_Coupons extends Page_Data<Data_Coupons> {


    /**
     * id : 3
     * code : 202007022497399373047808
     * name : 优惠券测试
     * pattern : 1
     * value : 10
     * creationTime : 1593722113163
     * used : false
     * expired : false
     * beginTime : 1594772682000
     * endTime : 1596155091000
     * remark :
     */

    private long id;
    private String code;
    private String name;
    private int pattern;
    private BigDecimal value;
    private long creationTime;
    private boolean used;
    private boolean expired;
    private long beginTime;
    private long endTime;
    private String remark;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPattern() {
        return pattern;
    }

    public void setPattern(int pattern) {
        this.pattern = pattern;
    }

    public BigDecimal getValue() {
        return value;
    }

    public String getValueStr() {
        return value == null ? "0" : value.setScale(0, BigDecimal.ROUND_HALF_UP).toString();
    }

    public void setValue(BigDecimal value) {
        this.value = value;
    }

    public long getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(long creationTime) {
        this.creationTime = creationTime;
    }

    public boolean isUsed() {
        return used;
    }

    public void setUsed(boolean used) {
        this.used = used;
    }

    public boolean isExpired() {
        return expired;
    }

    public void setExpired(boolean expired) {
        this.expired = expired;
    }

    public long getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(long beginTime) {
        this.beginTime = beginTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
